#!/usr/bin/env python3
# -*- coding:utf-8 -*-

from common.readelement import Element
from page_object.webpage import WebPage
login = Element('jzsz/personal/submitadvice')

class SubmitAdvicePage(WebPage):

    def choose_response_advice(self):
        """点击意见反馈"""
        self.is_click(login['意见反馈'])
        print("SubmitAdvicePage","SubmitAdvicePage")

    def choose_type(self):
        self.is_click(login['反馈类型'])

    def type_pro_advice(self):
        self.is_click(login['产品建议'])

    def add_response_content(self,content='affaddfvvdfs',tel='13623789907'):
        self.input_text(login['反馈内容'],content)
        self.input_text(login['联系方式'],tel)

    def click_confirm(self):
        self.is_click(login['确定'])